﻿using Pb;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SettlementCallScore : MonoBehaviour {

    public GameObject call1;
    public GameObject call2;
    public GameObject call3;
    public GameObject call4;

    void Awake()
    {
        UIEventListener.Get(call1).onClick = ButtonClick;
        UIEventListener.Get(call2).onClick = ButtonClick;
        UIEventListener.Get(call3).onClick = ButtonClick;
        UIEventListener.Get(call4).onClick = ButtonClick;
    }
    void ButtonClick(GameObject button)
    {
        DdzCallRequest lg = new Pb.DdzCallRequest {  CallMultiple=int.Parse(button.name)};
        SocketManager socketManager = SocketManager.Instance;
        socketManager.SendProtobuf1(lg, MsgId.DdzCallRequest);
        Destroy(gameObject);
    }
}
